Use this to create and send an email. Example use:

 applications.email.emailBuilder()
      .recipientAddress('test@yourdomain.co')
      .fromAddress('noreply@yourdomain.co')
      .subject('An email from ME! :-)')
      .html('<p><strong>Hello World</strong></p>')
      .build();
 
or
 var recipient = page.find('/users/test3/').thisProfile;
 applications.email.emailBuilder()
      .recipient(recipient)
      .fromAddress('noreply@yourdomain.co')
      .subject('An email from ME! :-)')
      .html('<p><strong>Hello World</strong></p>')
      .build();
 


Methods

Name Returns Notes Example
recipientAddress ( recipientAddress ) EmailItemBuilder Set the recipient email address, this email must exist within the account
recipient ( pb ) EmailItemBuilder
recipient ( profile ) EmailItemBuilder
fromAddress ( fromAddress ) EmailItemBuilder
replyToAddress ( replyToAddress ) EmailItemBuilder Set the reply to address
toList ( toList ) EmailItemBuilder Set the To list, a list of To recipients.
ccList ( ccList ) EmailItemBuilder
bccList ( bccList ) EmailItemBuilder
subject ( subject ) EmailItemBuilder Set the subject of the email
text ( text ) EmailItemBuilder Set the plain text of the email
html ( html ) EmailItemBuilder Set the html body of the email
addAttachement ( fileName, fileHash, contentType, disposition ) EmailItemBuilder Add an attachment to the email
addAttachement ( fileName, fileHash, contentType ) EmailItemBuilder Add an attachment to the email
build ( ) EmailItem Compile the email and queue the email to send

Ask a question, or offer an answer